package com.hst.capacity.domain.model.response.setting;

import com.hst.capacity.domain.model.entity.setting.airport.AirportEntity;
import com.hst.capacity.domain.model.entity.setting.railway.RailwayEntity;
import com.hst.capacity.domain.model.entity.setting.station.StationEntity;
import lombok.Data;

@Data
public class RailStationVO {

    private String idStation;
    private String name;
    private String coordinate;
    private String lat;
    private String lng;

    public RailStationVO(){
    }

    public RailStationVO(RailwayEntity entity){
        this.idStation = entity.getIdStation();
        this.name = entity.getName();
        this.lat = String.valueOf(entity.getLat());
        this.lng = String.valueOf(entity.getLng());
        this.coordinate = String.format("%s,%s",lat,lng);
    }

}
